package com.ysd.lis.controller.callNum;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.callNum.CallSampleVsFeeOrSam;
import com.ysd.lis.request.DeleteRptVsBarCodeParam;
import com.ysd.lis.service.callNum.CallSampleVsFeeOrSamService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author wh
 * @since 2025-05-28
 */
@RestController
@RequestMapping("/callNum/sampleVsFeeOrSam")
public class CallSampleVsFeeOrSamController extends BaseController {

    @Autowired
    private CallSampleVsFeeOrSamService callSampleVsFeeOrSamService;

    @ApiOperation("查找中间项目")
    @GetMapping("/getItemList")
    public Result getItemList( CallSampleVsFeeOrSam callSampleVsFeeOrSam) {
        return callSampleVsFeeOrSamService.getItemList(callSampleVsFeeOrSam);
    }
    @ApiOperation("添加对照关系")
    @PostMapping("/addSampleTypeCode")
    public Result addSampleTypeCode(@RequestBody CallSampleVsFeeOrSam callSampleVsFeeOrSam) {
        return callSampleVsFeeOrSamService.addSampleTypeCode(callSampleVsFeeOrSam);
    }

    @ApiOperation("删除对照关系")
    @PostMapping("/deleteSampleCode")
    public Result deleteSampleCode(@RequestBody CallSampleVsFeeOrSam callSampleVsFeeOrSam) {
        return callSampleVsFeeOrSamService.deleteSampleCode(callSampleVsFeeOrSam);
    }


}
